<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>指令生成系统</title>
<link rel="icon" href="images/index.ico" type="image/x-icon">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" href="layui/css/layui.css" />
</head>
<body class="layui-layout-body">
	<div class="layui-layout layui-layout-admin">
		<div class="layui-header">
			<div class="layui-logo">指令生成系统</div>
			<!-- 头部区域（可配合layui已有的水平导航） -->
			<ul class="layui-nav layui-layout-left">
				<li class="layui-nav-item"><a href="">控制台</a></li>
				<li class="layui-nav-item"><a href="">商品管理</a></li>
				<li class="layui-nav-item"><a href="">用户</a></li>
				<li class="layui-nav-item"><a href="javascript:;">其它系统</a>
					<dl class="layui-nav-child">
						<dd>
							<a href="">邮件管理</a>
						</dd>
						<dd>
							<a href="">消息管理</a>
						</dd>
						<dd>
							<a href="">授权管理</a>
						</dd>
					</dl></li>
			</ul>

			<ul class="layui-nav layui-layout-right">
				<li class="layui-nav-item"><a href="javascript:;"> <img
						src="http://t.cn/RCzsdCq" class="layui-nav-img" /> 贤心
				</a>
					<dl class="layui-nav-child">
						<dd>
							<a href="">基本资料</a>
						</dd>
						<dd>
							<a href="">安全设置</a>
						</dd>
					</dl></li>
				<li class="layui-nav-item"><a href="">退出</a></li>
			</ul>
		</div>

		<div class="layui-side layui-bg-black">
			<div class="layui-side-scroll">
				<!-- 左侧导航区域（可配合layui已有的垂直导航） -->
				<ul class="layui-nav layui-nav-tree" lay-filter="test">
					<li class="layui-nav-item layui-nav-itemed"><a class=""
						href="javascript:;">功能列表</a>
						<dl class="layui-nav-child">
							<dd>
								<a href="javascript:;">模板列表</a>
							</dd>
							<dd>
								<a href="javascript:;">新增模板</a>
							</dd>
							<dd>
								<a href="javascript:;">历史记录</a>
							</dd>
						</dl></li>
					<li class="layui-nav-item"><a href="">模板数据</a></li>
					<li class="layui-nav-item"><a href="">历史记录</a></li>
				</ul>
			</div>
		</div>

		<div class="layui-body">
			<div class="layui-tab" lay-filter="test">
				<ul class="layui-tab-title">
					<li  lay-id="11">模板列表</li>
					<li class="layui-this" lay-id="22">新增模板</li>
				</ul>
				<div class="layui-tab-content">
					<div class="layui-tab-item">
						<table class="layui-hide" id="test"></table>
					</div>
					<div class="layui-tab-item layui-show">
						<div>
							<form class="layui-form layui-form-pane" id="modelForm" action="/model/addModel">
								<div class="layui-form-item">
									<label class="layui-form-label">标题</label>
									<div class="layui-input-block" />
									<input type="text" name="title" required='true'
										lay-verify="required" placeholder="请输入标题" autocomplete="off"
										class="layui-input" />
								</div>
						</div>

						<div class="layui-form-item">
							<label class="layui-form-label">所属领域</label>
							<div class="layui-input-block">
								<select name="domain" lay-verify="required">
									<option value=""></option>
									<option value="0">免打扰</option>
									<option value="1">百度四垂类</option>
									<option value="2">谷歌翻译</option>
									<option value="3">图库搜索</option>
								</select>
							</div>
						</div>
						<div class="layui-form-item">
							<label class="layui-form-label">所属类型</label>
							<div class="layui-input-block">
								<input type="text" name="type" required='true'
									lay-verify="required" placeholder="请输入标题" autocomplete="off"
									class="layui-input" />
							</div>
						</div>
						<div class="layui-form-item">
							<div class="layui-inline">
								<label class="layui-form-label">添加指令</label>
								<div class="layui-input-inline">
									<select name="modules" lay-verify="required" lay-search="">
										<option value="">直接选择或搜索选择</option>
										<option value="1">地点</option>
										<option value="2">人物</option>
										<option value="3">时间</option>
										<option value="4">公司</option>
										<option value="5">产品</option>
										<option value="6">广告</option>
										<option value="7">电话</option>
										<option value="8">学校</option>
										<option value="9">地名</option>
										<option value="10">文学</option>
									</select>
								</div>
								<div class="layui-input-inline">
									<button class="layui-btn layui-btn-normal"><i class="layui-icon">&#xe654;</i></button>
								</div>
							</div>
							<div class="layui-inline">
								<label class="layui-form-label">添加静词</label>
								<div class="layui-input-inline">
									<select name="modules" lay-verify="required" lay-search="">
										<option value="">直接选择或搜索选择</option>
										<option value="1">layer</option>
										<option value="2">form</option>
										<option value="3">layim</option>
										<option value="4">element</option>
										<option value="5">laytpl</option>
										<option value="6">upload</option>
										<option value="7">laydate</option>
										<option value="8">laypage</option>
										<option value="9">flow</option>
										<option value="10">util</option>
										<option value="11">code</option>
										<option value="12">tree</option>
										<option value="13">layedit</option>
										<option value="14">nav</option>
										<option value="15">tab</option>
										<option value="16">table</option>
										<option value="17">select</option>
										<option value="18">checkbox</option>
										<option value="19">switch</option>
										<option value="20">radio</option>
									</select>
								</div>
								<div class="layui-input-inline">
									<button class="layui-btn layui-btn-normal"><i class="layui-icon">&#xe654;</i></button>
								</div>
							</div>
						</div>
						<div class="layui-form-item layui-form-text">
							<label class="layui-form-label">指令模板显示效果</label>
							<div class="layui-input-block">
								<textarea name="content" placeholder="请输入内容" class="layui-textarea"></textarea>
							</div>
						</div>
						<div class="layui-form-item">
							<div class="layui-input-block">
								<button class="layui-btn" lay-submit lay-filter="model" id="modelCommit">立即提交</button>
								<button type="reset" class="layui-btn layui-btn-primary">重置</button>
							</div>
						</div>
						</form>
					</div>

				</div>
			</div>
		</div>
	</div>

	<div class="layui-footer">
		<!-- 底部固定区域 -->
		© layui.com - 底部固定区域
	</div>
	</div>
	<script src="layui/layui.all.js"></script>
	<script src="js/jquery-1.7.2.js"></script>
	<script>
		//JavaScript代码区域
	</script>
	<script type="text/javascript" src="js/jQuery.extends.js"></script>
	<script type="text/javascript" src="js/index.js"></script>
	<script type="text/html" id="barDemo">
  <a class="layui-btn layui-btn-mini" lay-event="detail">查看</a>
  <a class="layui-btn layui-btn-mini" lay-event="edit">编辑</a>
  <a class="layui-btn layui-btn-danger layui-btn-mini" lay-event="del">删除</a>
  
  <!-- 这里同样支持 laytpl 语法，如： -->
  {{#  if(d.auth > 2){ }}
    <a class="layui-btn layui-btn-mini" lay-event="check">审核</a>
  {{#  } }}
</script>
</body>
</html>